package my.test.mediatorpattern.source;

/**
 * @author:许玉康
 * @Date: 2019/7/14 16:21
 */
public class ConcreteColleague2 extends Colleague {
    public  ConcreteColleague2(Mediator mediator) {
        super(mediator);
    }

    //自有方法
    public void selfMethod2() {

    }

    //依赖方法
    public void depMethod2() {
        super.mediator.doSomething2();
    }

}
